package com.cxrj.zhsq.utils;

import java.io.IOException;
import java.util.Map;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtils {
	private static ObjectMapper objectMapper = new ObjectMapper(); 
    /** 
     * json字符串转Map 
     * 2015年4月3日上午10:41:25 
     * auther:shijing 
     * @param jsonStr 
     * @return 
     * @throws IOException 
     */  
    @SuppressWarnings("unchecked")
	public static Map<String, Object> parseMap(String jsonStr) throws IOException {  
        Map<String, Object> map = objectMapper.readValue(jsonStr, Map.class);  
        return map;  
    }  
  
}
